package com.ihrm.common.exception;

import com.ihrm.common.entity.ResultCode;
import lombok.Getter;

@Getter
public class CommonException extends Exception {

    private static final long seriVersionUID = 1L;

    private ResultCode code = ResultCode.SERVER_ERROR;

    public CommonException(){}

    public CommonException(ResultCode resultCode){
        super(resultCode.message());
        this.code = resultCode;
    }

}
